<#include "header.htm"/>
<script type="text/javascript">
<!--
function validateInfo()
{
	var f = document.formrecover;
	var message = "";
	
	if (f.email.value == "") {
		message = "${I18n.getMessage("User.fillEmail")}";
	}
	else if (f.newPassword.value == "") {
		message = "${I18n.getMessage("User.fillPassword")}";
	}
	else if (f.confirmPassword.value == "") {
		message = "${I18n.getMessage("User.fillPasswordConfirmation")}";
	}
	else if ((f.newPassword.value != f.confirmPassword.value)) {
		message = "${I18n.getMessage("User.passwordNotMatch")}";
	}
	
	if (message != "") {
		alert(message);
		return false;
	}
	
	return true;
}
-->
</script>

 <form action="${contextPath}/jforum${extension}" method="post" name="formrecover" target="_top" id="formrecover" onsubmit="return validateInfo()" accept-charset="${encoding}">
  <input type="hidden" name="module" value="user" />
  <input type="hidden" name="recoverHash" value="${recoverHash}" />
  <input type="hidden" name="action" value="recoverPasswordValidate" />
  
 
<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>

	<div class="content">
		<h2>${I18n.getMessage("PasswordRecovery.title")}</h2>

        <p>${I18n.getMessage("PasswordRecovery.finalInstructions")}</p>
		<fieldset>
		
		<dl>
			<dt><label for="email">${I18n.getMessage("User.emailAddress")}:</label></dt>
			<dd><input class="inputbox narrow" type="text" name="email" id="email" size="25" maxlength="40"></dd>
		</dl>


		<dl>
			<dt><label for="newPassword">${I18n.getMessage("User.newPassword")}:</label></dt>
			<dd><input class="inputbox narrow" type="password" name="newPassword" id="email" size="25" maxlength="40"></dd>
		</dl>
		
		<dl>
			<dt><label for="confirmPassword">${I18n.getMessage("User.confirmPassword")}:</label></dt>
			<dd><input class="inputbox narrow" type="password" name="confirmPassword" id="email" maxlength="40" size="25" maxlength="40"></dd>
		</dl>		
		
		<dl>
			<dt>&nbsp;</dt>
			<dd><input type="submit" name="login" class="button1" value="${I18n.getMessage("ok")}" tabindex="2"></dd>
		</dl>
		
		</fieldset>
	</div>

	<span class="corners-bottom"><span></span></span></div>
</div> 
 
</form>
<#include "bottom.htm"/>